/**
 * Copyright (C) 2011 The Android Open Source Project 
 * Emial : guoyil199@163.com
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); 
 * you may not use this file except in compliance with the License. 
 * You may obtain a copy of the License at 
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0 
 * 
 * Unless required by applicable law or agreed to in writing, software 
 * distributed under the License is distributed on an "AS IS" BASIS, 
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
 * See the License for the specific language governing permissions and 
 * limitations under the License. 
 */ 
package com.json;


import java.io.Serializable;  
 
import com.google.gson.annotations.Expose;  
/** 
* 使用 new GsonBuilder().excludeFieldsWithoutExposeAnnotation().create(); 
* 创建Gson对象,没有@Expose注释的属性将不会被序列化 
* serialize序列化 默认 true 
* deserialize反序列化 默认 true 
* 
*/  
public class Address implements Serializable{  
   @Expose(serialize=false)// 序列化  /类已经序列化  
   private String streetNumber;  
   @Expose(deserialize=false)// 反序列化  
   private String street;  
   private String district;  
   private String city;  
   private String province;  
   private String cityCode;  
   public String getCityCode() {  
       return cityCode;  
   }  
   public void setCityCode(String cityCode) {  
       this.cityCode = cityCode;  
   }  
   public String getStreetNumber() {  
       return streetNumber;  
   }  
   public void setStreetNumber(String streetNumber) {  
       this.streetNumber = streetNumber;  
   }  
   public String getStreet() {  
       return street;  
   }  
   public void setStreet(String street) {  
       this.street = street;  
   }  
   public String getDistrict() {  
       return district;  
   }  
   public void setDistrict(String district) {  
       this.district = district;  
   }  
   public String getCity() {  
       return city;  
   }  
   public void setCity(String city) {  
       this.city = city;  
   }  
   public String getProvince() {  
       return province;  
   }  
   public void setProvince(String province) {  
       this.province = province;  
   }  
     
}